home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invenzioni & Inventori
/
Invenzioni and Inventori (Eclectica Publishing) (1996).ISO
/
invenzio
/
timeline.dir
/
00032_Script_32
< prev
next >
Wrap
Text File
|
1983-01-29
|
2KB
|
81 lines
on mouseup
global parola
set parola to ""
set ca to the mousecast
set ch to the mousechar
set wo to the mouseword
set wo2 to wo
if the type of member ca = #shape then
set parola to the name of cast ca
cercap parola
end if
end
on cercap parolal
global correlati
if parolal <> "" then
if char 1 to 2 of parolal = "ms" then
set correlati to parolal
chiamapopsot
exit
end if
set dove to offset (parolal,field "rimandi")
if dove > 0 then
set mov to (char dove-4 to dove-2 of field "rimandi")&".dir"
set l to char dove-6 to dove-5 of field "rimandi"
if l="ex" then set cartella to "extraurb"
if l="ct" then set cartella to "citta"
if l="ci" then set cartella to "cielo"
if l="ma" then set cartella to "mare"
if l="sp" then set cartella to "spazio"
-- if l="si" then set cartella to "sottoinv"
if l="mp" then set cartella to "tori"
if the machinetype < 255 then
if cartella = "tori" then
go to movie "invenzioni:invenzio:"&cartella&":mp"&mov
else
go to movie "invenzioni:invenzio:"&cartella&":mi"&mov
end if
else
if cartella = "tori" then
go to movie char 1 of the moviepath&":\invenzio\"&cartella&"\mp"&mov
else
go to movie char 1 of the moviepath&":\invenzio\"&cartella&"\mi"&mov
end if
end if
end if
end if
end
on pulisci cosa
if offset(numtochar (013), cosa) > 0 then put "" into char offset(numtochar (013), cosa) of cosa
set r to chartonum (char (the number of chars in cosa) of cosa)
if (r < 97 or r > 122) then
if (r < 65 or r > 90) then
if (r < 48 or r > 57) then
if (r < 126) then
delete char (the number of chars in cosa) of cosa
end if
end if
end if
end if
set r to char 1 of cosa
set r to chartonum (char (the number of chars in cosa) of cosa)
if (r < 97 or r > 122) then
if (r < 65 or r > 90) then
if (r < 48 or r > 57) then
if (r < 126) then
delete char 1 of cosa
end if
end if
end if
end if
return cosa
end if